-- GENERATED SPELL FOR [Karen I Don't Caribou the Culler] --


function spell0_25803(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(42724,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25803', 640, 1)
end

function spell1_25803(pUnit, Event) --@Intercept,n/a--
pUnit:FullCastSpellOnTarget(27577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25803', 645, 1)
end

function spell2_25803(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(48281,pUnit)
pUnit:RegisterEvent('Sorts_25803', 3348, 1)
end

function spell3_25803(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(48280,pUnit)
pUnit:RegisterEvent('Sorts_25803', 2000, 1)
end

function Sorts_25803(pUnit, Event)
local choix_sorts_25803 = math.random(0, 3)
if choix_sorts_25803 == 0 then
pUnit:RegisterEvent('spell0_25803', 1, 1)
end
if choix_sorts_25803 == 1 then
pUnit:RegisterEvent('spell1_25803', 1, 1)
end
if choix_sorts_25803 == 2 then
pUnit:RegisterEvent('spell2_25803', 1, 1)
end
if choix_sorts_25803 == 3 then
pUnit:RegisterEvent('spell3_25803', 1, 1)
end
end

function mob25803_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25803', math.random(1500, 3000), 1)
end

function mob25803_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25803_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25803_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25803, 1, 'mob25803_Action')
RegisterUnitEvent(25803, 2, 'mob25803_Leave')
RegisterUnitEvent(25803, 3, 'mob25803_Kill')
RegisterUnitEvent(25803, 4, 'mob25803_Die')
